package ${package}.action;

import org.apache.struts2.ServletActionContext;

import ${package}.rss.service.IRssService;
import com.opensymphony.xwork2.ActionSupport;

public class IndexAction extends ActionSupport {

	private static final long serialVersionUID = 7373330660420391223L;
	IRssService rssService;

	public void setRssService(IRssService rssService) {
		this.rssService = rssService;
	}

	public String execute() throws Exception {

		ServletActionContext.getRequest().setAttribute("entries",
				rssService.fetchRssEntries());

		return SUCCESS;
	}
}
